// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .CS}

//-------------MAIN---------------
thread 'HBAL' 
wait 0 
13@ = 1.0 

:HBAL_19
wait 6 
if 
   Player.Defined($PLAYER_CHAR)
jf @HBAL_19 
wait 500 
0AF1: write_int 0 to_ini_file "CLEO\POZIT.INI" section "SET" key "KEYB" 
0209: 26@ = random_int_in_ranges 1 26
if 
  26@ == 1 
jf @HBAL_7B 
12@ = 400 
jump @HBAL_3F6 

:HBAL_7B
if 
  26@ == 2 
jf @HBAL_9C 
12@ = 405 
jump @HBAL_3F6 

:HBAL_9C
if 
  26@ == 3 
jf @HBAL_BD 
12@ = 409 
jump @HBAL_3F6 

:HBAL_BD
if 
  26@ == 3 
jf @HBAL_DE 
12@ = 421 
jump @HBAL_3F6 

:HBAL_DE
if 
  26@ == 4 
jf @HBAL_FF 
12@ = 426 
jump @HBAL_3F6 

:HBAL_FF
if 
  26@ == 5 
jf @HBAL_120 
12@ = 445 
jump @HBAL_3F6 

:HBAL_120
if 
  26@ == 6 
jf @HBAL_141 
12@ = 458 
jump @HBAL_3F6 

:HBAL_141
if 
  26@ == 7 
jf @HBAL_162 
12@ = 466 
jump @HBAL_3F6 

:HBAL_162
if 
  26@ == 8 
jf @HBAL_183 
12@ = 467 
jump @HBAL_3F6 

:HBAL_183
if 
  26@ == 9 
jf @HBAL_1A4 
12@ = 470 
jump @HBAL_3F6 

:HBAL_1A4
if 
  26@ == 10 
jf @HBAL_1C5 
12@ = 479 
jump @HBAL_3F6 

:HBAL_1C5
if 
  26@ == 11 
jf @HBAL_1E6 
12@ = 490 
jump @HBAL_3F6 

:HBAL_1E6
if 
  26@ == 12 
jf @HBAL_207 
12@ = 492 
jump @HBAL_3F6 

:HBAL_207
if 
  26@ == 13 
jf @HBAL_228 
12@ = 507 
jump @HBAL_3F6 

:HBAL_228
if 
  26@ == 14 
jf @HBAL_249 
12@ = 516 
jump @HBAL_3F6 

:HBAL_249
if 
  26@ == 15 
jf @HBAL_26A 
12@ = 529 
jump @HBAL_3F6 

:HBAL_26A
if 
  26@ == 16 
jf @HBAL_28B 
12@ = 540 
jump @HBAL_3F6 

:HBAL_28B
if 
  26@ == 17 
jf @HBAL_2AC 
12@ = 546 
jump @HBAL_3F6 

:HBAL_2AC
if 
  26@ == 18 
jf @HBAL_2CD 
12@ = 547 
jump @HBAL_3F6 

:HBAL_2CD
if 
  26@ == 19 
jf @HBAL_2EE 
12@ = 550 
jump @HBAL_3F6 

:HBAL_2EE
if 
  26@ == 20 
jf @HBAL_30F 
12@ = 551 
jump @HBAL_3F6 

:HBAL_30F
if 
  26@ == 21 
jf @HBAL_330 
12@ = 560 
jump @HBAL_3F6 

:HBAL_330
if 
  26@ == 22 
jf @HBAL_351 
12@ = 561 
jump @HBAL_3F6 

:HBAL_351
if 
  26@ == 23 
jf @HBAL_372 
12@ = 566 
jump @HBAL_3F6 

:HBAL_372
if 
  26@ == 24 
jf @HBAL_393 
12@ = 566 
jump @HBAL_3F6 

:HBAL_393
if 
  26@ == 25 
jf @HBAL_3B4 
12@ = 579 
jump @HBAL_3F6 

:HBAL_3B4
if 
  26@ == 26 
jf @HBAL_3D5 
12@ = 580 
jump @HBAL_3F6 

:HBAL_3D5
if 
  26@ == 27 
jf @HBAL_3F6 
12@ = 585 
jump @HBAL_3F6 

:HBAL_3F6
0209: 14@ = random_int_in_ranges 22 32 
0209: 15@ = random_int_in_ranges 22 32 
0209: 16@ = random_int_in_ranges 22 32 
Model.Load(12@)
Model.Load(#BALLAS1)
Model.Load(#BALLAS3)
Model.Load(#BALLAS2)
Model.Load(#AK47)
Model.Load(#M4)
Model.Load(#MP5LNG)
Model.Load(#COLT45)
Model.Load(#SILENCED)
Model.Load(#DESERT_EAGLE)
Model.Load(#SAWNOFF)
Model.Load(#SHOTGSPA)
Model.Load(#MICRO_UZI)
Model.Load(#TEC9)
Model.Load(#CHROMEGUN)
038B: load_requested_models 
jump @HBAL_462 

:HBAL_462
wait 0 
if or
   not Model.Available(12@)
   not Model.Available(#BALLAS1)
   not Model.Available(#BALLAS3)
   not Model.Available(#BALLAS2)
   not Model.Available(#AK47)
   not Model.Available(#M4)
   not Model.Available(#MP5LNG)
jf @HBAL_4A3 
00BC: show_text_highpriority GXT 'ERROR' time 10000 flag 1 
end_thread 

:HBAL_4A3
if or
   not Model.Available(#COLT45)
   not Model.Available(#SILENCED)
   not Model.Available(#DESERT_EAGLE)
   not Model.Available(#SAWNOFF)
   not Model.Available(#SHOTGSPA)
   not Model.Available(#MICRO_UZI)
   not Model.Available(#TEC9)
jf @HBAL_4E3 
00BC: show_text_highpriority GXT 'ERROR' time 10000 flag 1 
end_thread 

:HBAL_4E3
wait 2000 
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 100.0 100.0 0.0 
04D3: get_nearest_car_path_coords_from 1@ 2@ 3@ type 0 store_to 4@ 5@ 6@ 
11@ = Car.Create(12@, 4@, 5@, 6@)
Car.Angle(11@) = 184.7214
Car.SetMaxSpeed(11@, 253.0)
Car.DoorStatus(11@) = 2
00AE: set_car 11@ traffic_behaviour_to 2 
Car.SetDriverBehaviour(11@, DriveToPlayer)
053F: set_car 11@ tires_vulnerability 0 
Car.SetImmunities(11@, 0, 1, 0, 1, 1)
Car.Health(11@) = 15000
0@ = Marker.CreateAboveCar(11@)
0587: enable_car 11@ validate_position 0 
10@ = Actor.CreateAsDriver(Gang1, #BALLAS1, 11@)
7@ = Actor.CreateAsPassenger(Gang1, #BALLAS2, 11@, 0)
8@ = Actor.CreateAsPassenger(Gang1, #BALLAS3, 11@, 1)
9@ = Actor.CreateAsPassenger(Gang1, #BALLAS1, 11@, 2)
25@ = Marker.CreateAboveActor(10@)
27@ = Marker.CreateAboveActor(7@)
28@ = Marker.CreateAboveActor(8@)
29@ = Marker.CreateAboveActor(9@)
072F: enable_car 11@ stuck_check_distance 0.5 time 4000 and_restore_if stuck 1 flipped 1 unk_place_on_road_properly 1 to_path 7 // extended 03CC 
Actor.GiveWeaponAndAmmo(10@, 14@, 9999)
Actor.GiveWeaponAndAmmo(7@, MicroUzi, 9999)
Actor.GiveWeaponAndAmmo(8@, Pistol, 9999)
Actor.GiveWeaponAndAmmo(9@, MicroUzi, 9999)
Actor.WeaponAccuracy(10@) = 100
Actor.WeaponAccuracy(7@) = 100
Actor.WeaponAccuracy(8@) = 100
Actor.WeaponAccuracy(9@) = 100
0190: add_car 11@ to_flipped_check // 6 max 
13@ *= 1.2 
13@ += 1.1 
Car.SetSpeedInstantly(11@, 13@)
jump @HBAL_65A 

:HBAL_65A
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
jf @HBAL_65A 
if 
   not Car.Wrecked(11@)
jf @HBAL_74A 
if 
   not Actor.Dead(8@)
jf @HBAL_6C2 
if 
0449:   actor 8@ in_a_car 
jf @HBAL_6C2 
0713: actor 8@ driveby_actor $PLAYER_ACTOR car -1 point 0.0 0.0 0.0 radius 150.0 8 1 firing_rate 100 

:HBAL_6C2
if 
   not Actor.Dead(7@)
jf @HBAL_706 
if 
0449:   actor 7@ in_a_car 
jf @HBAL_706 
0713: actor 7@ driveby_actor $PLAYER_ACTOR car -1 point 0.0 0.0 0.0 radius 150.0 8 1 firing_rate 100 

:HBAL_706
if 
   not Actor.Dead(9@)
jf @HBAL_74A 
if 
0449:   actor 9@ in_a_car 
jf @HBAL_74A 
0713: actor 9@ driveby_actor $PLAYER_ACTOR car -1 point 0.0 0.0 0.0 radius 150.0 8 1 firing_rate 100 

:HBAL_74A
if 
   not Actor.Driving($PLAYER_ACTOR)
jf @HBAL_795 
if 
   not Car.Wrecked(11@)
jf @HBAL_795 
if 
0205:   actor $PLAYER_ACTOR near_car 11@ radius 25.0 25.0 25.0 flag 0 
jf @HBAL_795 
jump @HBAL_823 

:HBAL_795
0AF0: 19@ = get_int_from_ini_file "CLEO\POZIT.INI" section "GET" key "KEYB" 
if or
   Actor.Dead($PLAYER_ACTOR)
0741:   actor $PLAYER_ACTOR busted 
wasted_or_busted 
  19@ == 1 
jf @HBAL_7DA 
jump @HBAL_BED 

:HBAL_7DA
if or
   Car.Wrecked(11@)
02BF:   car 11@ sunk 
jf @HBAL_7F6 
jump @HBAL_BED 

:HBAL_7F6
if and
   Actor.Dead(8@)
   Actor.Dead(9@)
   Actor.Dead(7@)
   Actor.Dead(10@)
jf @HBAL_81C 
jump @HBAL_BED 

:HBAL_81C
jump @HBAL_65A 

:HBAL_823
if and
   not Actor.Dead(10@)
   not Car.Wrecked(11@)
jf @HBAL_85F 
if 
0449:   actor 10@ in_a_car 
jf @HBAL_85F 
060B: set_actor 10@ decision_maker_to 3 
05CD: AS_actor 10@ exit_car 11@ 
05E2: AS_actor 10@ kill_actor $PLAYER_ACTOR 

:HBAL_85F
if and
   not Actor.Dead(7@)
   not Car.Wrecked(11@)
jf @HBAL_89B 
if 
0449:   actor 7@ in_a_car 
jf @HBAL_89B 
060B: set_actor 7@ decision_maker_to 3 
05CD: AS_actor 7@ exit_car 11@ 
05E2: AS_actor 7@ kill_actor $PLAYER_ACTOR 

:HBAL_89B
if and
   not Actor.Dead(8@)
   not Car.Wrecked(11@)
jf @HBAL_8D7 
if 
0449:   actor 8@ in_a_car 
jf @HBAL_8D7 
060B: set_actor 8@ decision_maker_to 3 
05CD: AS_actor 8@ exit_car 11@ 
05E2: AS_actor 8@ kill_actor $PLAYER_ACTOR 

:HBAL_8D7
if and
   not Car.Wrecked(11@)
   not Actor.Dead(9@)
jf @HBAL_913 
if 
0449:   actor 9@ in_a_car 
jf @HBAL_913 
060B: set_actor 9@ decision_maker_to 3 
05CD: AS_actor 9@ exit_car 11@ 
05E2: AS_actor 9@ kill_actor $PLAYER_ACTOR 

:HBAL_913
wait 0 
if 
075C:   marker 0@ enabled 
jf @HBAL_93F 
Marker.Disable(0@)
0661: NOP "===============" 

:HBAL_93F
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
jf @HBAL_93F 
if 
   Actor.Driving($PLAYER_ACTOR)
jf @HBAL_99E 
if 
   not Car.Wrecked(11@)
jf @HBAL_99E 
if 
0205:   actor $PLAYER_ACTOR near_car 11@ radius 25.0 25.0 25.0 flag 0 
jf @HBAL_99E 
jump @HBAL_A3F 

:HBAL_99E
0AF0: 19@ = get_int_from_ini_file "CLEO\POZIT.INI" section "GET" key "KEYB" 
if or
   Actor.Dead($PLAYER_ACTOR)
0741:   actor $PLAYER_ACTOR busted 
wasted_or_busted 
  19@ == 1 
jf @HBAL_9E3 
jump @HBAL_BED 

:HBAL_9E3
if or
   Car.Wrecked(11@)
02BF:   car 11@ sunk 
jf @HBAL_9FF 
jump @HBAL_BED 

:HBAL_9FF
if and
   Actor.Dead(8@)
   Actor.Dead(9@)
   Actor.Dead(7@)
   Actor.Dead(10@)
jf @HBAL_A25 
jump @HBAL_BED 

:HBAL_A25
jump @HBAL_93F 
0661: NOP "===============" 

:HBAL_A3F
if and
   not Actor.Dead(10@)
   not Car.Wrecked(11@)
jf @HBAL_A7D 
072A: put_actor 10@ into_car 11@ driverseat 
Actor.SetImmunities(10@, 0, 1, 1, 1, 1)
Actor.GiveWeaponAndAmmo(10@, 15@, 9999)
Actor.WeaponAccuracy(10@) = 100

:HBAL_A7D
0209: 14@ = random_int_in_ranges 22 32 
0209: 15@ = random_int_in_ranges 22 32 
0209: 16@ = random_int_in_ranges 22 32 
if 
   not Car.Wrecked(11@)
jf @HBAL_B01 
Car.Angle(11@) = 184.7214
Car.SetMaxSpeed(11@, 253.0)
Car.DoorStatus(11@) = 2
00AE: set_car 11@ traffic_behaviour_to 2 
Car.SetDriverBehaviour(11@, KillThePlayer)
053F: set_car 11@ tires_vulnerability 0 
0@ = Marker.CreateAboveCar(11@)
0587: enable_car 11@ validate_position 0 
072F: enable_car 11@ stuck_check_distance 0.5 time 4000 and_restore_if stuck 1 flipped 1 unk_place_on_road_properly 1 to_path 7 // extended 03CC 
0190: add_car 11@ to_flipped_check // 6 max 

:HBAL_B01
if 
   not Actor.Dead(7@)
jf @HBAL_B4C 
if 
   not Car.Wrecked(11@)
jf @HBAL_B4C 
072B: put_actor 7@ into_car 11@ passengerseat 0 
Actor.SetImmunities(7@, 0, 1, 1, 1, 1)
Actor.GiveWeaponAndAmmo(7@, 15@, 9999)
Actor.WeaponAccuracy(7@) = 100

:HBAL_B4C
if 
   not Actor.Dead(8@)
jf @HBAL_B97 
if 
   not Car.Wrecked(11@)
jf @HBAL_B97 
072B: put_actor 8@ into_car 11@ passengerseat 1 
Actor.SetImmunities(8@, 0, 1, 1, 1, 1)
Actor.GiveWeaponAndAmmo(8@, 15@, 9999)
Actor.WeaponAccuracy(8@) = 100

:HBAL_B97
if 
   not Actor.Dead(9@)
jf @HBAL_BE2 
if 
   not Car.Wrecked(11@)
jf @HBAL_BE2 
072B: put_actor 9@ into_car 11@ passengerseat 2 
Actor.SetImmunities(9@, 0, 1, 1, 1, 1)
Actor.GiveWeaponAndAmmo(9@, 15@, 9999)
Actor.WeaponAccuracy(9@) = 100

:HBAL_BE2
wait 0 
jump @HBAL_65A 

:HBAL_BED
Actor.RemoveReferences(10@)
Actor.RemoveReferences(7@)
Actor.RemoveReferences(8@)
Actor.RemoveReferences(9@)
Car.RemoveReferences(11@)
end_thread
